﻿@model ContentItemDetailsViewModel<Event>
@section PageTitle { | Model.ContentItem.Title }
@section Head {
	@Html.CSS("event.css")
}
<div id="content-div">
	<div class="content-title">
		<div class="icon-image">
			@Html.Image("icons/event_45.png", "Event")
		</div>
		<h1>@Model.ContentItem.Title</h1>
	</div>
	<ul class="event-info-list">
		<li class="event-location-list-item">
			<div class="event-info-div">
				<p><strong>Location:</strong> @Model.ContentItem.Location</p>
			</div>
		</li>
		<li class="event-datetime-list-item">
			<div class="event-info-div">
				<p><strong>Date:</strong> @Model.ContentItem.ToFormattedEventDate().ToHtml()</p>
			</div>
			<a class="calendar-link" title="Add to my Calendar" href="@Url.Action("Add", "Calendar", new { eventId = Model.ContentItem.PrimaryContentItemId })"><img src="@Url.Image("icons/add_45.png")" alt="" /></a>
		</li>
	</ul>
	<br />
	<div class="content-div clearfix">
		@if (Model.ContentItem.PageContent.IsNullOrEmpty()) { @Model.ContentItem.Description.ToHtml() }
		else { @Model.ContentItem.PageContent.ToHtml() }
	</div>
	<br />
	@Html.Partial("DetailsInfo", Model)
</div>
<div id="aside-div">

</div>